import { Pipe, PipeTransform } from "@angular/core";
import { ImgStoreData } from "src/storage/.config/store.type";

@Pipe({
  name: "dataFilter",
  pure: false
})
export class DataFilterPipe implements PipeTransform {
  transform(arr: ImgStoreData["data"], keyword: string = "") {
    return arr.filter(v => v.name.includes(keyword))
  }
}
